// 翻译planner.js中写死的英文
const fs = require('fs');
const lang = require('./plannerLang');

const content = fs.readFileSync('./src/lastepoch/planner/js/planner.js.backup').toString();

let result = content;
lang.forEach(([key, val]) => {
  const reg = new RegExp(key, 'g');
  result = result.replace(reg, val);
})

fs.writeFileSync('./src/lastepoch/planner/js/planner.js', result);